<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
<head>
	<title>hello word</title>
	<script src="https://www.recaptcha.net/recaptcha/api.js"></script>
</head>
<body>
<h1>test google reCaptcha V3</h1>

<form id='demo-form' action='/token' method='POST'>
	<input name="username" type="text"/>
	<input name="password" type="password"/>
	<!-- Replace this with your site key -->
	<button class="g-recaptcha"
			data-sitekey="6LetSsoUAAAAAAzniUpvIqXNyRH6av3kjast5F03"
			data-callback="onSubmit"
			onClick='onSubmit'> Submit </button>
</form>

</body>
<script>
	function onSubmit() {
		document.getElementById('demo-form').submit();
	}
</script>
</html>